#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS USING_TESTNGPP_NS

FIXTURE(Square)
{
	TEST(should be able to calc perimeter: length=3, Perimeter=12)
	{
		Square square(3);
		ASSERT_EQ(12, square.getPerimeter());
	}

	TEST(should be able to calc area: length=3, area=9)
	{
		Square square(3);
		ASSERT_EQ(9, square.getArea());
	}

	TEST(should be able to set sideLength: sideLength=5, area=25)
	{
		Square square(3);
		square.setSideLength(5);
		ASSERT_EQ(25, square.getArea());
	}

};
